package com.biz.primus.model.misc.exception;

import com.biz.primus.model.misc.enums.NotAvailableExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 供应商因为各种各样的原因,不能使用的异常
 *
 * @author yanweijin
 * @date 2017/5/30
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ProviderNotAvailableException extends Exception {

    private static final long serialVersionUID = 5505335086424706973L;

    /**
     *
     */
    private NotAvailableExceptionType notAvailableExceptionType;

    public ProviderNotAvailableException(NotAvailableExceptionType notAvailableExceptionType, String message) {
        super(message);
        this.notAvailableExceptionType = notAvailableExceptionType;
    }

}
